package com.example.qa.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author testjava
 * @since 2021-03-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ZhAnswer对象", description="")
public class ZhAnswer implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "回答问题的ID")
    private String questionId;

    private String userAvatar;
    @ApiModelProperty(value = "回答用户名")
    private String userName;

    @ApiModelProperty(value = "回答内容")
    private String content;
    @ApiModelProperty(value = "创建回答时间")
    @TableField(fill=FieldFill.INSERT)
    private Date gmtCreate;

    private Integer status;

    private BigDecimal weight;

    @ApiModelProperty(value = "最后回答时间")
    @TableField(fill= FieldFill.INSERT_UPDATE)
    private Date gmtModified;


}
